package com.zeus.service;

import com.zeus.mapper.OrdersMapper;
import com.zeus.pojo.Orders;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 冯扬龙
 * @date 2021/4/23 20:53
 */
@Service
public class OrdersServiceImpl implements OrdersService{

    @Autowired
    private OrdersMapper ordersMapper;

 //显示订单详细信息
    public List<Orders> selectOrderList() {
        return ordersMapper.selectOrderList();
    }

//通过前端传过来的orderId,快递单号，快递信息来修改商品状态，让前台可以看到商品发货了

    public int updateOrderByShip(int orderId, String shipName, String shipNumber) {
        return ordersMapper.updateOrderByShip(orderId,shipName,shipNumber);
    }
}
